﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SendEmail2.aspx.cs" EnableEventValidation="false" Inherits="User_UserEmail_SendEmail" ValidateRequest="false" %>

<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <script type="text/javascript" src="../../js/MyOption.js"></script>
</head>
<body style="" topmargin="5px" bgcolor="#eeeeee">
    <form id="form1" runat="server">
    <div>
        <table style="" align="center" cellpadding="1" cellspacing="1" bgcolor="black">
            <tr>
                <td colspan="2" background="../CSS/Snap1.jpg" align="center" style="font-size:12px" height="30px">发送内部邮件</td>
            </tr> 
            <tr>
                <td align="center" style="height: 169px; font-size:12px" bgcolor="white">
                    收件人:</td>
                <td colspan="1" style="height: 169px" bgcolor="white">
                    <table style="width: 100%" cellpadding="0" cellspacing="0">
                        <tr>
                            <td style="width: 267px; height: 8px;">
                                <font style=" font-size:12px">待选人员</font></td>
                            <td style="width: 52px; height: 8px;">
                            </td>
                            <td style="height: 8px">
                                <font style="font-size:12px">已选人员</font></td>
                        </tr>
                        <tr>
                            <td style="width: 267px; height: 26px">
                                <input id="willSelectOneTxt" onkeyup="willSelectOneTxtValueChange('willSelectOneTxt','willSelectOneLbx')"
                                    style="width: 160px; background-color: linen" type="text" />
                                <font style="font-size: 12px">查找待选人员姓名</font></td>
                            <td align="center" rowspan="2" style="width: 52px">
                                <p>
                                    <input id="theOneRightMoveButton" onclick="moveSelectEmp('willSelectOneLbx','selectedLbx','right')"
                                        style="width: 37px; height: 24px" title="添加到已选人员" type="button" value=">>" /></p>
                                <input id="theOneLeftMoveButton" onclick="moveSelectEmp('selectedLbx','willSelectOneLbx','left')"
                                    style="width: 37px; height: 24px" title="从已选人员中移除" type="button" value="<<" />
                                <p>
                                    <input id="theOneAllRightMoveButton" onclick="moveALLSelectEmp('willSelectOneLbx','selectedLbx','right')"
                                        style="width: 37px; height: 24px" title="全部添加到已选人员" type="button" value="-->>" /></p>
                                <input id="theOneAllLeftMoveButton" onclick="moveALLSelectEmp('selectedLbx','willSelectOneLbx','left')"
                                    title="全部从已选人员中移除" type="button" value="<<--" /></td>
                            <td rowspan="2">
                                <asp:ListBox ID="selectedLbx" runat="server" BackColor="#C0C0FF" Height="170px" SelectionMode="Multiple"
                                    Width="255px"></asp:ListBox></td>
                        </tr>
                        <tr>
                            <td style="width: 267px;">
                                <asp:ListBox ID="willSelectOneLbx" runat="server" BackColor="#C0C0FF" Height="140px" 
                                    SelectionMode="Multiple" Width="266px"></asp:ListBox>
                                <script type="text/javascript">
                                       loadOptions('willSelectOneLbx');
                                </script>

                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr bgcolor="white">
                <td align="center" background="../CSS/Snap1.jpg"style="width: 69px; height: 26px; font-size:12px">
                    附件:</td>
                <td colspan="1" style="height: 26px" background="../CSS/Snap1.jpg">
                    <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" Font-Italic="True"
                        Font-Overline="False" Font-Size="Smaller" Font-Underline="False" ForeColor="Navy"
                        NavigateUrl="#">添加附件</asp:HyperLink>
                    <input id="uploadFilePaths" runat="server" type="hidden" /></td>
            </tr>
            <tr bgcolor="white">
                <td align="center" style="width: 69px; height: 21px; font-size:12px">
                    内容:</td>
                <td colspan="1" style="height: 21px" >
                    <ftb:freetextbox id="ftbEmailContent" runat="server" width="575px" ButtonPath="../../images/ftb/office2003/" AutoConfigure="Default"></ftb:freetextbox>
                    <input id="selectedEmpCollection" runat="server" type="hidden" /></td>
            </tr>
            <tr>
                <td align="center" background="../CSS/Snap1.jpg" colspan="2" height="30px" style="font-size: 12px">
                    <asp:Button ID="btnSendEmail" runat="server" OnClick="btnSendEmail_Click" OnClientClick="return checkSendTarget('selectedLbx','ftbEmailContent')"
                        Text="发送" Width="87px" /></td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
